package com.hotel.mapper;

import com.hotel.bean.Department;
import com.hotel.bean.Dept_Emp;

import java.util.List;

public interface DeptMapper {
    //添加
    int insert(Department d);
    //根据did删除
    int delete(Integer did);
    //修改
    int update(Department d);
    //查询所有
    List<Department> selectAll();
    //根据did查询
    Department selectByDid(Integer did);
    //根据dname查询
    Department selectByDname(String dname);
    //查询要删除部门下是否有员工
    List<Dept_Emp> selectAllDeptByDid(Integer did);
}
